﻿@model GameSchoolApplication.Models.examQuestion
           
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Ný spurning</legend>

        @Html.HiddenFor(model => model.examID)
        <div class="editor-label">
            <label>Nr.</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.qNumber)
            @Html.ValidationMessageFor(model => model.qNumber)
        </div>

        <div class="editor-label">
            <label>Spurning</label>
        </div>

        <div class="editor-field">
            @Html.EditorFor(model => model.qText)
            @Html.ValidationMessageFor(model => model.qText)
        </div>

        <div class="editor-label">
            <label>Rétt svar</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.correctIndex)
            @Html.ValidationMessageFor(model => model.correctIndex)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

